package com.wyh.yuhcloud.service;


import com.wyh.yuhcloud.dto.AddUserDto;
import com.wyh.yuhcloud.dto.LoginUserDto;
import com.wyh.yuhcloud.dto.ResultDto;
import com.wyh.yuhcloud.entity.User;

public interface UserService {
    //注册
    String signUp(AddUserDto adUserDto);
    //登录
    ResultDto userLogin(LoginUserDto loginUserDto);
    //请求等级
    Integer queryVersion(String userName);
    //邮件确认
    void mailCheck(String mail);

    // 从数据库中取出用户信息
    User selectByUsername(String username);

    public Integer selectPermissionValueByUserId(String id);
}
